package com.leps.nq.bu.mapper;

import com.leps.nq.bu.entity.BuStation;
import com.leps.nq.bu.entity.BuUserStation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * (用户-场站)关系表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface BuUserStationMapper extends BaseMapper<BuUserStation> {

    int deleteByUserId(Long userId);

    int insertBatch(@Param("userId") Long userId, @Param("stationIds") List<Integer> stationIds);

    int insertBatchFromUserCustRelationAndUserAreaRelation(BuStation station);
}
